package com.jhs.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 节点流量表单对象
 *
 * @author zxy
 * @since 2025-08-11 19:21
 */
@Getter
@Setter
@Schema(description = "节点流量表单对象")
public class SysNodesTrafficForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "节点id")
    @NotNull(message = "节点id不能为空")
    private Long nodeId;



    @Schema(description = "节点的上行流量值")
    private Double upVal;

    @Schema(description = "节点的下行行流量值")
    private Double downVal;

    @Schema(description = "节点的总流量值")
    private Double totalVal;

    @Schema(description = "逻辑删除标识(0-未删除 1-已删除)")
    private Integer isDeleted;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
